using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebApplication2.Models
{
    [Serializable]
    [Table("Orders")]
    public class Orders
    {
        #region 表字段
        
        /// <summary>
        /// ID
        /// </summary>
        [DisplayName(@"ID")]
        public Guid ID { get; set; }

        /// <summary>
        /// OrderNo
        /// </summary>
        [DisplayName(@"OrderNo")]
        [MaxLength(20)]
        [Required]
        public string OrderNo { get; set; }

        /// <summary>
        /// GoodsId
        /// </summary>
        [DisplayName(@"GoodsId")]
        public Guid GoodsId { get; set; }

        public int HisStorck { get; set; }
        /// <summary>
        /// UserId
        /// </summary>
        [DisplayName(@"UserId")]
        public Guid UserId { get; set; }
        
        /// <summary>
        /// SubmitTime
        /// </summary>
        [DisplayName(@"SubmitTime")]
        public DateTime SubmitTime { get; set; }


        #endregion
    }
}